package com.greenDao.activity.tool;

public class Marker {

	private int marker;

	public Marker() {
		this.marker = 0;
	}

	public void updateLimit(int limit) {
		if (limit < marker) {
			marker = limit;
		} else if (limit == marker) {
			marker--;
		}
	}

	public void setMarker(int marker) {
		this.marker = (marker > 0) ? marker : 0;
	}

	public int getMarker() {
		return marker;
	}
}
